package com.aerfafish.spider.neo4j.dao;

import lombok.Data;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.Relationship;

import java.util.Set;

@NodeEntity("Person")
@Data
public class Person {

    @Id
    Long id;

    // 管理人代码
    @Property
    String code;

    // 管理人所属公司代码
    @Relationship(type = "PERSON_MANAGE_FUND")
    PersonManaged personManaged;

    // 当前管理基金代码
    @Relationship(type = "PERSON_MANAGE_FUND")
    Set<PersonManage> managerFundCode;

}
